package com.client.mapper;

import com.client.dto.GoodsAndLanguageDto;
import com.client.pojo.FlowerOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 晚云
 * @since 2023-09-12
 */
@Mapper
public interface FlowerOrderMapper extends BaseMapper<FlowerOrder> {

    boolean insertList(@Param("flowerOrders") List<FlowerOrder> flowerOrders);

    List<FlowerOrder> order_select_List(@Param("userId") String userId);

    List<FlowerOrder> selectAndCount(@Param("userId") String userId,@Param("goodsId") String goodsId);

    boolean saveOrder(@Param("dto") GoodsAndLanguageDto dto,@Param("orderId") String orderId);
}
